<?php
/**
 *
 *
 */
class Restriction extends AppModel
{
    public $name       = "Restriction";
    public $primaryKey = "restrictionId";



    public function get_category()
    {
        return self::query('select `category` from `restrictions` group by `category` asc');
    }

    public function get_restrictions(array $conditions, $fields = array('*'), $marker = 'all')
    {
        return parent::find($marker, $conditions, $fields);
    }
}
?>